<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Registrar</title>
</head>
<body style="background-color: yellow">
<center><b style="background-color: red; color: White;">Ingrese los datos de la persona son :</b> 
	<f:view >
		<h:form id="persona">
			<h:panelGrid columns="2" >
				<h:outputText value="Nombre:"/>
				<h:inputText id="Nombre" value="#{personaBean.nombre}"
					required="true">
					<f:validateLength minimum="2" maximum="50" />
				</h:inputText>
				<h:outputText value="Apellido:" />
				<h:inputText id="apellido" value="#{personaBean.apellido}"
					required="true"></h:inputText>
				<h:outputText value="Cedula:" />
				<h:inputText id="cedula" value="#{personaBean.cedula}"
					required="true">
					<f:validateLongRange minimum="1" />
					<h:message for="cedula"/>
				</h:inputText>
				<h:outputText value="Edad:" />
				<h:inputText id="Edad" value="#{personaBean.edad}" required="true"></h:inputText>
				
			</h:panelGrid>
			<h:messages />
			<br />
			<h:commandButton value="Enviar" action="mostrar.xhtml" />
		</h:form>
	</f:view>
	</center>
</body>
</html>